#pragma once

#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <string>
#include <clocale>
#include <algorithm>
#include <exception>

using namespace std;

class my_ip
{
private:
	string ip1;
	string ip2;

public:

	my_ip()
	{
	}

	~my_ip()
	{
	}

	void set_ip1(string ip){
		this->ip1 = ip;
	}

	void set_ip2(string ip){
		this->ip2 = ip;
	}


	friend istream &operator >> (istream &in, my_ip &ip){
		string s;
		getline(in, s, ' '); //ip1 som string
		ip.set_ip1(s);
		getline(in, s); //ip2 som string
		ip.set_ip2(s);
		return in;
	}

};

